﻿using System.Reflection;

namespace MiniTool.Core.Tests
{
    public class Program
    {
        static void Main(string[] args)
        {
            string[] array = { "apple", null, "banana", "orange" };
            string item = "banana";

            bool containsItem = ArrayUtil.Contains(array, item);
            Console.WriteLine(containsItem);  // 输出：True
            Console.WriteLine("GetExecutingAssembly:" + DLLUtil.GetExecutingAssembly()); 
            Console.WriteLine("GetCallingAssembly:" + DLLUtil.GetCallingAssembly()); 
            Console.WriteLine("GetEntryAssembly:" + DLLUtil.GetEntryAssembly());

            List<Assembly> projectAssemblies = DLLUtil.GetCurrentProjectAssemblies();

            Console.WriteLine("当前项目中的程序集：");
            foreach (Assembly assembly in projectAssemblies)
            {
                Console.WriteLine(assembly.FullName);
            }
        }
    }
}
